package cn.stylefeng.guns.modular.myenum;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * @author 李宝嘉
 * @Date 2021/12/23 14:58
 */
@Getter
public enum RoomStatusEnum {
    CLOSE(0, "关闭中"), OPEN(1, "开放中");

    RoomStatusEnum(int code, String descp) {
        this.code = code;
        this.descp = descp;
    }


    @JsonValue
    @EnumValue
    private final int code;
    private final String descp;
}
